#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import verifymail_blueprint
from api.verifyMailResource.verifyMailResource import VerifyMailResource
from api.verifyMailResource.verifyMailOtherResource import VerifyMailOtherResource

api = Api(verifymail_blueprint)

api.add_resource(VerifyMailResource, '/verifyMail/<mail_verify_id>', '/verifyMail', endpoint='VerifyMail')


@verifymail_blueprint.route('/verifymail/update/<mail_verify_id>', methods=['PUT'], endpoint='VerifyMailUpdate')
def update(mail_verify_id):
    return VerifyMailOtherResource.sensitive_update(mail_verify_id)
